package com.ylb.mapper;

import com.ylb.entity.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * @author: ylb
 * @create: 2021.3.23
 */
@Mapper
public interface OrderMapper {

    @Insert("insert into order(oNumber,uid,yearmonth,createTime) values (#{oNumber},#{uid},#{yearmonth},#{createTime})")
    @Options(useGeneratedKeys = true,keyColumn = "oid",keyProperty = "oid")
    void addOrder(Order order);
}
